import { postRequest, getRequest } from '/@/lib/axios';

export const mrnordApi = {

    queryPage : (param) => {
        return postRequest('/mrnord/queryPage', param);
    },

    add: (param) => {
        return postRequest('/mrnord/add', param);
    },

    update: (param) => {
        return postRequest('/mrnord/update', param);
    },

    delete: (id) => {
        return getRequest(`/mrnord/delete/${id}`);
    },

    batchDelete: (idList) => {
        return postRequest('/mrnord/batchDelete', idList);
    },

    info: (param) => {
        return getRequest('/mrnord/info/' + param);
    },

    infoUnexecute: (id) => {
        return getRequest(`/mrnord/infoUnexecute/${id}`);
    },

};

export const mrnordaApi = {

    /**
     * 分页查询  @author  AKITA
     */
    queryPage : (param) => {
        return postRequest('/mrnorda/queryPage', param);
    },

    /**
     * 增加  @author  AKITA
     */
    add: (param) => {
        return postRequest('/mrnorda/add', param);
    },

    /**
     * 修改  @author  AKITA
     */
    update: (param) => {
        return postRequest('/mrnorda/update', param);
    },


    /**
     * 删除  @author  AKITA
     */
    delete: (id) => {
        return getRequest(`/mrnorda/delete/${id}`);
    },

    /**
     * 批量删除  @author  AKITA
     */
    batchDelete: (idList) => {
        return postRequest('/mrnorda/batchDelete', idList);
    },



};
